<div class="page-container"><div class="content" style="margin: 0px; border: 0px; line-height: 40px;"><?php //echo stripslashes($this->page->text) 
	preg_match_all('/\$(audio|video)\=([a-zA-Zа-яА-я0-9_\-\=\+\/\|\?\:\;\.\,\%\&]*)\$/', stripslashes($this->page->text), $m);
	$count = count($m[0]);
	$content = stripslashes($this->page->text);
	for ($i=0; $i<$count; $i++) {
		if ($m[1][$i] == 'audio') {
			$content = strtr(
				$content,
				array($m[0][$i] => '<audio src="' . $m[2][$i] . '" type="audio/mp3" controls="controls"></audio>')
			);
		} elseif ($m[1][$i] == 'video') {
			$content = strtr(
				$content,
				array($m[0][$i] => '<video src="' . $m[2][$i] . '" type="video/mp4" controls="controls"></audio>')
			);
		}
	}
	echo $content;
?></div></div>